Tutorial

The best way to learn using RemoteTester is probably to get a look at remoteTester/runner/MySSRemoteTestCase.java in the test directory.

You just need to create a classic junit TestCase (but that extends RemoteTestCase ) and code your tests as usually. You are free to use classes and ressources only available on server side at runtime.

The only difference is that you have to extend RemoteTestCase :

You can also get a look at MySSRemoteTestCaseWithHelper which shows the last added feature : support for test helper classes.

Test helper classes are classes required to run the test but which are not available on server side (i.e. Mock objects). So you can upload them at the same time as the TestCase.

The only difference in writing the TestCase is that you must override the addHelpers method :

    public Class[] addHelpers() {
        return new Class[]{MyTestHelper.class};
    }